package com.atwulidun.adapter05.classadapter;

// 适配器类，继承src，实现dst
public class VoltageAdapter extends Voltage220V implements IVoltage5V {
    // 将继承到的220V转换成5V输出
    @Override
    public int output5V() {
        int src = output220V();
        int dst = src / 44;
        return dst;
    }
}
